projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a9e6f
)
(tabify): Don't delete back before initial START.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Feb 1994 00:16:31 +0000
(
00:16
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Feb 1994 00:16:31 +0000
(
00:16
+0000)
lisp/tabify.el
patch
|
blob
|
history
diff --git
a/lisp/tabify.el
b/lisp/tabify.el
index ac2004dccda774ccc9a58e08406184771b6bd262..16e65bddcde10e85e02eb15047a28b1e4bcd594a 100644
(file)
--- a/
lisp/tabify.el
+++ b/
lisp/tabify.el
@@
-39,11
+39,11
@@
The variable `tab-width' controls the spacing of tab stops."
(narrow-to-region (point-min) end)
(goto-char start)
(while (search-forward "\t" nil t) ; faster than re-search
- (let ((
start
(point))
+ (let ((
tab-beg
(point))
(column (current-column))
(indent-tabs-mode nil))
- (skip-chars-backward "\t")
- (delete-region
start
(point))
+ (skip-chars-backward "\t"
start
)
+ (delete-region
tab-beg
(point))
(indent-to column))))))
;;;###autoload